package com.FH.applyForm.officeServies.export.meeting;

import com.FH.util.ResultDTO;

import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/meetingexport")
@Produces(MediaType.APPLICATION_JSON)
@RequestScoped
public class ExportMeetingResource {
    @EJB ExportMeetingDAO exportMeetingDAO;

    @GET
    @Path("/download/{search}")
    public ResultDTO exportMeeting(@PathParam("search") String condition){

        return  exportMeetingDAO.exportMeeting(condition);
    }

}
